<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>业主欠费明细查询</title>
<LINK href="images/css.css" type="text/css" rel="stylesheet">
</head>

<body>

  <table cellspacing="0" cellpadding="0" width="80%" border="0" align="center">
    <tr>
     <td colspan="12" class="STYLE4" align="center" bgcolor="#ffffff" colspan="2" height="40">业主欠费汇总显示(${year }年${month }月)</td>
     </tr>
    <tr>
      <td colspan="2" align="center" bgcolor="#ffffff">
      <table class="tableline" cellspacing="1" cellpadding="0" width="100%" border="0">
        <tr align="center">
          <td width="7%" height="25" bgcolor="#ffffff" >所属小区</td>
          <td width="7%" bgcolor="#ffffff" >业主姓名</td>
          <td width="5%" bgcolor="#ffffff" >物业服务费</td>
          <td width="5%" bgcolor="#ffffff" >单独物业服务费</td>
          <td width="5%" bgcolor="#ffffff" >电费</td>
          <td width="5%" bgcolor="#ffffff" >水费</td>
          <td width="5%" bgcolor="#ffffff" >停车服务费</td>
          <td width="5%" bgcolor="#ffffff" >垃圾清运费</td>
          <td width="5%" bgcolor="#ffffff" >路灯电费</td>
          <td width="5%" bgcolor="#ffffff" >二次提水电费</td>
          <td width="5%" bgcolor="#ffffff" >装修垃圾清运费</td>
          <td width="5%" bgcolor="#ffffff" >装修保证金</td>
          <td width="5%" bgcolor="#ffffff" >装修服务费</td>
          <td width="5%" bgcolor="#ffffff" >单独电费</td>
          <td width="5%" bgcolor="#ffffff" >单独水费</td>
          <td width="5%" bgcolor="#ffffff" >单独垃圾清运费</td>
          <td width="5%" bgcolor="#ffffff" >单独路灯电费</td>
          <td width="5%" bgcolor="#ffffff" >单独二次提水电费</td>
          <td width="5%" bgcolor="#ffffff" >欠费总额</td>
        </tr>
        <c:if test="${!empty pm.datas}">
				<c:forEach items="${pm.datas}" var="owe">
        <tr align="center">
          <td height="25" bgcolor="#ffffff" >${owe.subName}</td>
          <td bgcolor="#ffffff" >${owe.oweName}</td>
           <td bgcolor="#ffffff" >${owe.amount4}</td>
           <td bgcolor="#ffffff" >${owe.amount5}</td>
           <td bgcolor="#ffffff" >${owe.amount6}</td>
           <td bgcolor="#ffffff" >${owe.amount7}</td>
           <td bgcolor="#ffffff" >${owe.amount8}</td>
           <td bgcolor="#ffffff" >${owe.amount9}</td>
           <td bgcolor="#ffffff" >${owe.amount10}</td>
           <td bgcolor="#ffffff" >${owe.amount11}</td>
           <td bgcolor="#ffffff" >${owe.amount12}</td>
           <td bgcolor="#ffffff" >${owe.amount13}</td>
           <td bgcolor="#ffffff" >${owe.amount14}</td>
           <td bgcolor="#ffffff" >${owe.amount15}</td>
           <td bgcolor="#ffffff" >${owe.amount16}</td>
           <td bgcolor="#ffffff" >${owe.amount17}</td>
           <td bgcolor="#ffffff" >${owe.amount18}</td>
           <td bgcolor="#ffffff" >${owe.amount19}</td>
           <td bgcolor="#ffffff" ><fmt:formatNumber>${owe.amount4+owe.amount5+owe.amount6+owe.amount7+owe.amount8+owe.amount9+owe.amount10+owe.amount11+owe.amount12+owe.amount13+owe.amount14+owe.amount15+owe.amount16+owe.amount17+owe.amount18+owe.amount19}</fmt:formatNumber></td>
        </tr>
        </c:forEach>
        </c:if>
        <tr>
        <td colspan="19" bgcolor="#ffffff" >
        <center>
        <pg:pager url="queryOweCollectChargeList.do" items="${pm.total }" export="currentPageNumber=pageNumber">
	<pg:first>
		<a href="${pageUrl }&distId=${distId }&subId=${subId }&year=${year }&month=${month }">首页</a>
	</pg:first>
	<pg:prev>
		<a href="${pageUrl }&distId=${distId }&subId=${subId }&year=${year }&month=${month }">上一页</a>
	</pg:prev>
	<pg:pages>
		<c:choose>
			<c:when test="${currentPageNumber eq pageNumber}">
				<font color="red">${pageNumber }</font>
			</c:when>
			<c:otherwise>
				<a href="${pageUrl }&distId=${distId }&subId=${subId }&year=${year }&month=${month }">${pageNumber }</a>
			</c:otherwise>
		</c:choose>
	</pg:pages>
	<pg:next>
		<a href="${pageUrl }&distId=${distId }&subId=${subId }&year=${year }&month=${month }">下一页</a>
	</pg:next>
	<pg:last>
		<a href="${pageUrl }&distId=${distId }&subId=${subId }&year=${year }&month=${month }">尾页</a>
	</pg:last>
</pg:pager>
</center>
        </td>
        </tr>
      </table>
      </td>
    </tr>
  <tr align="right">                           
		<td  bgcolor="#ffffff" align="right" colspan="2">
			<input
				type="button" value="导出Excel报表" style="color: green;"
				onclick="window.location.href='queryOweCollectChargeList.do?method=doExportExcel'">
		</td>
	</tr>
	</table>
</body>
</html>